const {remote, app, clipboard, getAppPath} = require('electron');
const projectRoot = remote.getGlobal('projectPath');
const srcPath = remote.getGlobal('srcPath');

const core = require(`${srcPath}/mainlib/core`);
const Type = require(`${srcPath}/mainlib/type`);
const {animation_support} = require(`${srcPath}/mainlib/window-animation`);
const ipc = require(`${srcPath}/mainlib/ipc`);
const fs = require('fs');
const markdown = require("markdown").markdown;

var t = new Vue({
    el:'#root',
    
    data: {
        versionData: null,
    },
    
    mounted() {
        this.versionData = JSON.parse(fs.readFileSync(projectRoot + '\\changelog.json').toString());
    },
    
    methods: {
        close(e) {
            e.preventDefault();
            let win = animation_support(remote.getCurrentWindow());
            win.hideWithAnimation();
        },
        
        getAppIcon() {
            return srcPath+ '\\' + this.package.build.icon;
        }
    },
    
    computed: {
    },
    
});
